package com.company.test19;

import com.sun.xml.internal.ws.policy.privateutil.PolicyUtils;

import java.io.*;
import java.util.Date;

/**
 * Created by Administrator on 2016.9.23.
 */
public class Test1905 {
    public static void main(String[] args) throws IOException{
        int[] numbers={1,2,3,4,5};
        Date date=new Date();
        double a=5.5;

        File file=new File("src/com/company/Exercise1905.dat");
        if(!file.exists()){
            file.createNewFile();
        }

        ObjectOutputStream output=new ObjectOutputStream(new FileOutputStream(file));
        output.writeObject(numbers);
        output.writeObject(date);
        output.writeDouble(a);
        output.close();
    }
}
